<div class="alert">
<?php
require_once('includes/user_manage.php');

$user->order->db_delete(); // It deletes the order from table orders
$user->order->db_delete_items(); // It deletes the order from table orders_items
$user->order=null; // We remove the pointer to the order that has been removed and save it to the session
$_SESSION["ser_user"]=serialize($user);
?>
	El pedido ha sido eliminado y no será enviado.
</div>

<script type="text/javascript">
window.setTimeout(removeAlert,1000,document.getElementById('cancelOrder'));
function removeAlert(alert) {
	alert.parentNode.removeChild(alert);
}
</script>
